@abstract
extends Node2D
class_name OrbitComponentBase

@export var rotation_center: Node2D
var radius :float= 40.0

func _ready() -> void:
	radius = (rotation_center.global_position - global_position).length()

func _process(delta):
	if !rotation_center:
		return
	_orbit(delta)

@abstract func _orbit(delta)
